package com.masz.apipassenger.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

/**
 * @author masz
 * @Date 2022/2/1 02:13
 */
@RestController
public class TestCallSmsService {

    @Autowired
    private RestTemplate restTemplate;

    @RequestMapping("/call/sms")
    public String test(){
        return restTemplate.getForObject("http://service-sms/test/sms-test",String.class);
    }

}
